package cn.wolfcode.crm.Service;


import cn.wolfcode.crm.domain.Employee;
import cn.wolfcode.crm.query.EmployeeQuery;
import com.github.pagehelper.PageInfo;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface IEmployeeService {
    int deleteByPrimaryKey(Long id);

    void insert(Employee record,Long[] ids);

    Employee selectByPrimaryKey(Long id);

    List<Employee> selectAll();

    int updateByPrimaryKey(Employee record);

    void batchDelete(Long[] ids);


    PageInfo<Employee> queryForList(EmployeeQuery qo);

    Employee isExist(Employee employee);

    List<String> getPermissions(Long id);


    Workbook exportXls();

    void importXls(MultipartFile file) throws IOException;

    List<Employee> listEmployeesByRoleSns(String... roleSns);
}
